#!/usr/bin/python

# -*- coding: utf-8 -*-

#border.py

import wx

class Example(wx.Frame):

    def __init__(self, parent, title):
        super(Example, self).__init__(parent, title=title, size=((260,180)))
        self.InitUI()
        self.Centre()
        self.Show()

    def InitUI(self):
        panel = wx.Panel(self)
        panel.SetBackgroundColour('#4f5049')
        vbox =  wx.BoxSizer(wx.VERTICAL)

        midPan = wx.Panel(panel)
        midPan.SetBackgroundColour('#ededed')

        #wx.EXPAND flag will use all the space that has been alloted to the 
        #widget
        #wx.ALL flag applies to the border size of all the four sides.
        vbox.Add(midPan, 1, wx.ALL | wx.EXPAND, 2)
        panel.SetSizer(vbox)


if __name__ == '__main__':
    app = wx.App()
    Example( None, title='Border')
    app.MainLoop()
        

                                     
